home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Web-Publishing / HTML-Editoren / Alpha ƒ / Tcl / Modes / installMode.tcl < prev    next >
Encoding:
Text File  |  2000-12-05  |  1.6 KB  |  44 lines

  1. #################################################################################
  2. # install mode.
  3. # You should not remove this file.  Alpha may not function very well
  4. # without it.
  5. #================================================================================
  6.  
  7. alpha::mode Inst 0.1.2 {
  8.     # Rather than using a 'dummyProc', we use a script,
  9.     # which is then removed (so it's only ever called once).
  10.     hook::register openHook install::openHook Inst
  11.     hook::register editHook install::editHook .install
  12.     newPref v prefixString {# } Inst
  13.     
  14.     set Inst::commentCharacters(General)    "# "
  15.     set Inst::commentCharacters(Paragraph)  [list "## " " ##" " # "]
  16.     set Inst::commentCharacters(Box)        [list "#" 2 "#" 2 "#" 3]
  17.     
  18.     # Just a little bit of color for the comments and strings
  19.     
  20.     regModeKeywords -e {#} -c red -s {green} Inst {}
  21. } [list "*Install" "*INSTALL"] {
  22.     installMenu
  23. } {
  24.     addMenu installMenu "Install"
  25. } help {
  26.     The mode is for used by install scripts for adding additional
  27.     packages or upgrading Alpha.  Install mode places an "Install" menu
  28.     in the menu bar, although installation scripts generally use an
  29.     installation dialog which provides an even better user interface.
  30.  
  31.     Click on this link "Install Example" for an example of such a
  32.     dialog.  To see the actual script, hold down any modifier key when
  33.     clicking on the link.
  34.  
  35.     For more information about installation, see "install.tcl".
  36.     For more information about writing packages, see "Extending Alpha".
  37.  
  38.     This mode is not intended for text editing.
  39. }
  40.  
  41.  
  42.  
  43.